<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Shopping Cart</title>
</head>
<body>
<a href="Home">Return</a>
<table>
	<c:if test="${not empty bookList}">
		<c:forEach var="bookline" items="${bookList}">
			<tr>				
				<td>${bookline.value}</td>
				<td>${bookline.key.bid}</td>
				<td>${bookline.key.bname}</td>
				<td><fmt:formatNumber value="${bookline.key.price}" pattern="$##,###.00"></fmt:formatNumber></td>
				<td><img src="${bookline.key.picture}"/></td>
				<td><a href="RemoveFromCart?bid=${bookline.key.bid}&bname=${bookline.key.bname}&price=${bookline.key.price}&picture=${bookline.key.picture}">Delete</a></td>
			</tr>				
		</c:forEach>
	</c:if>
</table>

</body>
</html>